package com.jk.service;

import com.jk.entity.New;
import com.jk.mapper.NewMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by dell on 2017/6/8.
 */
@Service
public class NewServiceImp implements NewService {

    @Resource
    private NewMapper newMapper;

    public List<New> test() {
        System.out.println(2);
        List<New> news = newMapper.selectNews();
        return news;
    }
}
